#include "36064.h"

void wdt_off(void)
{
    WDT.TCSRWD.BYTE=0x1E; //TCSRWD write enable && WDON:0 && WRST:0(HWM 13.2.1)
    WDT.TCSRWD.BYTE=0x80; //TCSRWD write disnable (HWM 13.2.1)
    WDT.TCWD=0x00;        //Timer Counter Reset
}

void led_on(void)
{
    IO.PCR6=0xFF;       //P6 is output port (HWM 9.5.1)
    IO.PDR6.BIT.B4 = 0; //P64 low - LED1 on (HWM 9.5.1)
    IO.PDR6.BIT.B5 = 1; //P65 high - LED2 off (HWM 9.5.1)
}

int main()
{
    wdt_off();
    led_on();

    while (1) {
        ;;
    }
}

